home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980424-19980901
/
000096_news@newsmaster….columbia.edu _Tue May 19 18:24:26 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA03982
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 19 May 1998 18:24:26 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id SAA03194
for kermit.misc@watsun; Tue, 19 May 1998 18:24:26 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Paging from Unix prompt?
Date: 19 May 1998 22:24:21 GMT
Organization: Columbia University
Lines: 43
Message-ID: <6jt0ql$67h$1@apakabar.cc.columbia.edu>
References: <6jstj2$6mc@portal.gmu.edu>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8749
In article <6jstj2$6mc@portal.gmu.edu>,
Ravi Malghan <rmalghan@site.gmu.edu> wrote:
: I have a script which takes three variables and I am able to send a page from
: the C-Kermit prompt. But I need to implement such that I can page from the
: Unix prompt (possibly from other applications as a system command). right
: now I have a macro defined as following. Could somebody please help me.
: =====
: define DIAL_PAGE {
: set modem type usr ;
: set port /dev/ttya ;
: set speed 9600 ;
: set dial display on ;
: dial \%1 ;
:
: }
:
: define NPAGE {
: set dial timeout 240 ;
: DIAL_PAGE \%1@\%2#\%3##;
: clear dial-status ;
: hangup ;
: }
:
First of all, since you are sending a numeric page, you should use
PDIAL rather than DIAL, since DIAL will fail if the modem does not
indicate carrier.
So at the C-Kermit> prompt you type something like:
npage 7654321 1234 5678
right? There are several ways to do this from the UNIX prompt.
One way is to make a shell script containing:
kermit -C "def \\%1 $1, def \\%2 $2, def \\%3 $3, take npage.ksc"
where npage.ksc is the file that contains the NPAGE and DIAL_PAGE macro
definitions. Or, if the NPAGE and DIAL_PAGE macros are defined in your
C-Kermit startup files:
kermit -C "npage $1 $2 $3"
- Frank